// Language config
#define CURRENT_LANG INTL_LANG

// Wifi config
const char WLANSSID[] PROGMEM = "Freifunk-disabled";
const char WLANPWD[] PROGMEM = "";
//const char WLANSSID[] PROGMEM = "boloto2";
//const char WLANPWD[] PROGMEM = "abcdmara";
//const char WLANSSID[] PROGMEM = "iPhone Lavric";
//const char WLANPWD[] PROGMEM = "abcdmara9";
//const char WLANSSID[] PROGMEM = "Redmi9";
//const char WLANPWD[] PROGMEM = "720572kol";

// BasicAuth config
const char WWW_USERNAME[] PROGMEM = "admin";
const char WWW_PASSWORD[] PROGMEM = "";
#define WWW_BASICAUTH_ENABLED 0

#define BUILDTM_YEAR (\
    __DATE__[7] == '?' ? 1900 \
    : (((__DATE__[7] - '0') * 1000 ) \
    + (__DATE__[8] - '0') * 100 \
    + (__DATE__[9] - '0') * 10 \
    + __DATE__[10] - '0'))

// DHT22, temperature, humidity
#define DHT_READ 0
#define DHT_TYPE DHT11
#define DHT_API_PIN 7

// GPS, preferred Neo-(X)M
#define GPS_READ 0
#define GPS_API_PIN 9

// ENS160, TVOC, CO2
#define ENS_READ 0

// AHT20, temperature, humidity
#define AHT_READ 0

// Sensor Wifi config (config mode)
#define FS_SSID ""
#define FS_PWD ""

// Where to send the data?
#define SEND2CSV 1
#define SEND2CUSTOM 1

enum LoggerEntry {
    LoggerCustom,
    LoggerCount
};

struct LoggerConfig {
    uint16_t destport;
    uint16_t errors;
#if defined(ESP8266)
    BearSSL::Session* session;
#else
    void* session;
#endif
};

static const char NTP_SERVER_1[] PROGMEM = "0.pool.ntp.org";
static const char NTP_SERVER_2[] PROGMEM = "1.pool.ntp.org";

// define own API
static const char HOST_CUSTOM[] PROGMEM = "192.168.234.1";
static const char URL_CUSTOM[] PROGMEM = "/data.php";
#define PORT_CUSTOM 80
#define USER_CUSTOM ""
#define PWD_CUSTOM ""
#define SSL_CUSTOM 0

//  === pin assignments for NodeMCU V2 board ===================================
#if defined(ESP8266)

// define pin for one wire sensors
#define ONEWIRE_PIN D7

// define serial interface pins for particle sensors
// Serial confusion: These definitions are based on SoftSerial
// TX (transmitting) pin on one side goes to RX (receiving) pin on other side
// SoftSerial RX PIN is D1 and goes to SDS TX
// SoftSerial TX PIN is D2 and goes to SDS RX
#define PM_SERIAL_RX D1
#define PM_SERIAL_TX D2

// define pins for I2C
#define I2C_PIN_SCL D4
#define I2C_PIN_SDA D3

// define serial interface pins for GPS modules
#define GPS_SERIAL_RX D5
#define GPS_SERIAL_TX D6
#endif

// LCD Display LCD2004 connected?
#define HAS_LCD2004 0

// LCD Display LCD2004 (0x27) connected?
#define HAS_LCD2004_27 0

// LCD Display LCD2004 backlight?
#define IS_LCD2004_BACKLIGHT 0

// Show wifi info on displays
#define DISPLAY_WIFI_INFO 1

// Show device info on displays
#define DISPLAY_DEVICE_INFO 1

// Set debug level for serial output?
#define DEBUG 3
